﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>慈铭体检-慢病预测</title>
<meta name="description" content="" />
<link href="css/fashionfoucs.css" rel="stylesheet" />
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="js/jquery.plugin.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function(){
		$("input").change(function(){
			$.post(
				"${pageContext.request.contextPath}/riskAgain.action",
				{
					other11 :$("#cb1:checked").val(),
					bmi24   :$("#cb2:checked").val(),
					other4  :$("#cb3:checked").val(),
					other5  :$("#cb4:checked").val(),
					other10 :$("#cb5:checked").val()
				},
				function(data){
					$(".colorimgtop").css("height",data +"px");       
				}
			);
		});
	});
</script>
</head>
<body class="bodybg">
<div id="topheader">
	<div class="logocon"><span class="logo">慈铭体检</span>&nbsp;&nbsp;|&nbsp;&nbsp;慢病预测</div>
	<div class="navmenu"><a href="index.html">网站首页</a>|<a href="svgMap/map.html">疾病分布</a>|<a href="yuce.html">慢病预测</a>|<a href="aizdlogin.html">癌症筛选</a></div>
</div>

<div class="yucecon">    
    <div class="bgback">
    <div class="Result1 orgcol"><strong>高血压风险预测结果</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;与您同性别同年龄段人群比较，您的风险是<c:out value="${risk}"/></div>    
    <div class="textcon">这个结果只是一个估计值，如果您有任何疑问，请咨询医生。</div>
    <div class="ce_zt">
    	<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                            <tbody>
                            <tr valign="top" align="center"> 
                              <td colspan="5" valign="top">你的风险：<br /><strong><org><c:out value="${risk}"/></org></strong></td>
                            </tr>
                            <tr valign="top" align="center">
                              <td colspan="5" valign="top">&nbsp;</td>
                            </tr>
                            <tr align="left" valign="top">
                              <!--
                              Modified on 09/27/01 - Changed data cell definition as part of port to
                              standalone PC server for ACS.  Caused a problem in stack presentation
                              when using Netscape 6.1.  Believe problem was caused by pixel height of
                              chart_left.gif being larger than spanned row height.  Added additional
                              "blank" rows at bottom of table to compensate.
                              <td align=right rowspan=88 width=19><img height=263
                              -->
                              <td align="right" rowspan="5" width="19"><img height="300" src="images/chart_left.png" width="19"></td>
                             </tr>

                            <!-- Add 8 additional "blank" rows here to complete Netscape 6.1 problem -->
                            <tr>
                              <td valign="bottom">
                              <div class="colzhu">
                              	
                                <div class="colorimg"></div>
                                <div class="colorimgtop" style="height:${nowRiskHeight}px;"><img src="images/yr_8.png" /></div>
                                <div class="colorimgbom" style="height:${minRiskHeight}px;"><img src="images/ylr_8.png" /></div>                          	

                            </div>
                            </td></tr>
                            <tr>
                              <td height="15">&nbsp;</td>
                            </tr>
<!--                             <tr>
                              <td >是什么提高了我的风险？</td>
                            </tr>
                            <tr>
                              <td>是什么降低了我的风险？</td>
                            </tr> -->
                            <tr>
                              <td colspan="2">&nbsp;</td>
                            </tr>
                          </tbody></table>
                          
    </div>
    
    <div class="ce_txt">
    <% int[] data = (int[]) request.getSession().getAttribute("other");
       int count = data[4] + data[5] + data[10] + data[11];
       if ((Double)request.getSession().getAttribute("bmi") > 24) count++;
       %>
       
   	  <p><strong>如何使您的风险降低</strong><br />做到以下<%=count %>件事，可以降低你的风险。勾选其中一项或几项，查看你的风险下降空间：</p>
		
        <p>
          <c:if test="${other[11] == 1}"><label><input type="checkbox" name="cb" id="cb1" value="cb1"/>戒烟。</label><br /></c:if>
		  <c:if test="${bmi       > 24}"><label><input type="checkbox" name="cb" id="cb2" value="cb2"/>减轻体重，保持健康的体型。</label><br/></c:if>
		  <c:if test="${other[4]  == 1}"><label><input type="checkbox" name="cb" id="cb3" value="cb3"/>适当饮酒，控制每天的饮酒量。</label><br/></c:if>
		  <c:if test="${other[5]  == 1}"><label><input type="checkbox" name="cb" id="cb4" value="cb4"/>减少饮食中钠盐的摄入量。</label><br /></c:if>
		  <c:if test="${other[10] == 1}"><label><input type="checkbox" name="cb" id="cb5" value="cb5"/>增加每周的锻炼次数，保证一周至少三次，每次30分钟以上。</label><br/></c:if>
          <br />
        </p>
        <p><strong>您的高血压风险因素有哪些?</strong><br />
      
基于您填写的问卷，我们发现引起您高血压患病的风险因素有如下几项：</p>
        <ul>
          <c:if test="${(bmi>=24)&&(bmi <28)}"><li>您的体型偏胖</li></c:if>
          <c:if test="${bmi            >= 28}"><li>您的体型较肥胖</li></c:if>
          <c:if test="${other[4]       ==  1}"><li>您每天的饮酒量过多</li></c:if>
          <c:if test="${other[5]       ==  1}"><li>您每天的盐分摄入量可能偏高</li></c:if>
          <c:if test="${other[10]      ==  1}"><li>您每周的锻炼次数偏少</li></c:if>
          <c:if test="${other[11]      ==  1}"><li>吸烟</li></c:if>
          <c:if test="${other[2]       ==  1}"><li>您有高血压患病家族史</li></c:if>
          <c:if test="${other[7]       ==  1}"><li>您患有糖尿病</li></c:if>
          <c:if test="${other[6]       ==  1}"><li>您的血糖代谢存在异常</li></c:if>
          <c:if test="${other[8]       ==  1}"><li>您的胆固醇较高</li></c:if>
          <c:if test="${other[9]       ==  1}"><li>您的甘油三脂较高</li></c:if>
        </ul>
    </div>
    <div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
    </div>	
<script type="text/javascript" src="js/fashionfoucs.js"></script>

<!--[if IE 6]>
<script src="js/DDPngMin.js"></script>
<script>DD_belatedPNG.fix('.ad_img img,#banner_ctr ul');</script>
<![endif]--> 

</body>
</html>
